package com.findviewbydream.evil.eda.Utils.Dialog;

import android.content.Context;
import android.view.View;
import android.widget.LinearLayout;

import com.flyco.dialog.widget.MaterialDialog;

/********************************************
 * 工程名：Eda
 * 包名：com.findviewbydream.evil.eda.Utils.Dialog
 * 时间：16-9-4 下午11:47
 * 作者：白雨濃 evil
 * 邮箱：evilbai@foxmail.com
 * 内容：方便自定义的dialog 修改于MaterialDialog
 ********************************************/
public class NMaterialDialog extends MaterialDialog
{
    private View view;

    public NMaterialDialog(Context context)
    {
        super(context);
    }

    public void setContentView(View view)
    {
        this.view = view;
    }

    @Override
    public View onCreateView()
    {
        if (view == null)
            return super.onCreateView();
        else
        {
            mLlContainer.addView(view);

            return mLlContainer;
        }
    }
}
